* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    /* 解决iOS滚动不流畅 */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    /* 防止移动端双击缩放 */
    touch-action: pan-y;
}

#app {
    width: 100%;
    min-height: 100vh;
}


/* 移动端特殊处理 */

@media (max-width: 768px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-y: visible;
        overflow-x: hidden;
        position: relative;
    }
    body {
        touch-action: pan-y;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }
    /* iOS 特殊处理 */
    #app {
        position: relative;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* 滚动条样式 */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}


/* 选中文本样式 */

::selection {
    background: #667eea;
    color: white;
}

::-moz-selection {
    background: #667eea;
    color: white;
}